package com.itheima.date8;

import java.time.LocalDateTime;
/*
LocalDate.now()
LocalTime.now()
LocalDate.of();
locaTime.of():


 */
public class Demo01 {
//创建对象
    public static void main(String[] args) {
        //now
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        int m=0;
        for (int i = 0; i < 100000000; i++) {
            int j=10;
            m=i+j;
        }
        System.out.println(m);
        //of
        LocalDateTime time = LocalDateTime.of(2011, 11, 11, 11, 11, 11);
        System.out.println(time);

        LocalDateTime now2 = LocalDateTime.now();
        System.out.println(now2);
    }
}
